
//package com.jf.cloud.combo.listener;
//
//import com.jf.cloud.combo.service.ComboOrderService;
//import com.jf.cloud.common.order.bo.ComboOrderNotifyBO;
//import com.jf.cloud.common.rocketmq.config.RocketMqConstant;
//import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
//import org.apache.rocketmq.spring.core.RocketMQListener;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//
///**
// * @author zz
// * @date 2022/9/7 11:41
// */
//@Component
//@RocketMQMessageListener(topic = RocketMqConstant.SAVE_COMBO_ORDER,consumerGroup = RocketMqConstant.SAVE_COMBO_ORDER)
//public class ComboOrderListener implements RocketMQListener<ComboOrderNotifyBO> {
//
//    @Autowired
//    private ComboOrderService comboOrderService;
//
//    /**
//     * 保存套餐订单信息
//     * @param comboOrderNotifyBO
//     */
//    @Override
//    public void onMessage(ComboOrderNotifyBO comboOrderNotifyBO) {
//        comboOrderService.saveComboOrders(comboOrderNotifyBO.getShopCartOrderMergerVO());
//    }
//}
